<template>
  <div id="main" :class="['app-main',isIe?'ie-body':'']">
    <router-view></router-view>
  </div>
</template>

<script>
import {getCategoryTree} from '@/api/goods.js'
export default {
  data(){
    return{
      isIe:false
    }
  },
  created(){
    this.isIe= (!!window.ActiveXObject || "ActiveXObject" in window) 
  },
  updated() {
    if (!this.getStore('category') && this.$route.path !== '/login') {
      getCategoryTree(0).then(res => {
        if (res.success) {
          this.setStore('category', JSON.stringify(res.result))
        }
      })
    }
  },

};
</script>

<style lang="scss">
* {
  box-sizing: border-box;
  padding: 0;
  margin: 0;
  scrollbar-color: #99a9bf #d3dce6; // 火狐
  scrollbar-width: thin; // 火狐
  // -ms-overflow-style: none; // IE隐藏滚动条
}
html,
body {
  width: 100%;
  height: 100%;
  background: #f0f0f0;
  overflow-y: hidden;
  font-size: 12px;
}

.app-main {
  width: 100%;
  height: 100%;
}

.br button {
  margin-right: 5px;
}

.operation button {
  margin-right: 5px;
}

.ivu-btn-text:focus {
  box-shadow: none !important;
}

.ivu-tag {
  cursor: pointer;
}
.tox-notifications-container{
  display: none !important;
}
.ie-body{
        font-family: none!important;
      }
</style>
